package com.aisi.backend.mapper;

import com.aisi.backend.domain.entity.Account;
import com.aisi.backend.domain.vo.request.LoginAccountVo;
import org.apache.ibatis.annotations.*;

/**
 * @Author: shenjianZ
 * @Date: 2024/5/1 上午11:39
 * @Description:
 */


@Mapper
public interface AccountMapper {

    Account findAccount(LoginAccountVo vo);

    Integer register(Account account);

    Integer resetPassword(Account account);
    Account findAccountById(Integer accountId);

    Integer updateAccount(Account account);

    Integer updateAccountAvatar(@Param("userId") Integer userId, @Param("avatar") String avatar);

}